package com.chen.recruit.service;

import com.chen.recruit.common.api.CommonResult;
import com.chen.recruit.domain.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.recruit.domain.dto.MenuDto;

import java.util.List;

/**
 * 菜单权限Service接口
 *
 * @author cgy
 * @date 2022-08-19
 */
public interface MenuService extends IService<Menu> {

    CommonResult addOrUpdateMenu(Menu menu);

    CommonResult deleteMenuById(Integer menuId);

    List<MenuDto> getMenusByLoginUser();

    List<String> getMenuPermissionsByUserId(Object userId);

    List<MenuDto> getMenusByCondition(Menu menu);

}
